import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Util from './lib/util'
// import VConsole from 'vconsole'




import './assets/reset.css';


// rem h5 适配
import 'amfe-flexible/index.js'


//加入h5调试工具
if(window.location.href.indexOf('debugger=1') != -1) {
  new VConsole();
  console.log('vConsole -success')
}



const app = createApp(App);

import {
  Toast,
  Button,
  NavBar,
  Search,
} from 'vant';


app.use(Button);
app.use(NavBar);
app.use(Toast);
app.use(Search)


app.config.globalProperties.$toast = Toast
app.config.globalProperties.$util = Util

app.use(store).use(router).mount('#app')
